import Vue from 'vue'
import App from './App.vue'

import Element from 'element-ui'
import './assets/styles/element-variables.scss'

import '@/assets/styles/index.scss' // global css
import '@/assets/styles/common.scss' // common css
import router from './router'

import plugins from './plugins' // plugins
import {download} from '@/utils/request'
import {addDateRange, handleTree, isNullOrEmpty, parseTime, resetForm} from "@/utils/common";

Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.handleTree = handleTree
Vue.prototype.isNullOrEmpty = isNullOrEmpty
Vue.prototype.download = download

Vue.use(plugins)

Vue.use(Element, {})

Vue.config.productionTip = false

new Vue({
    router,
    render: h => h(App),
}).$mount('#app')
